package cn.le.javaNet;

import java.net.InetAddress;
import java.net.UnknownHostException;

public class WhAmI {

    public static void main(String[] args) throws UnknownHostException {

        InetAddress a = InetAddress.getByName("");
        System.out.println(a);

        System.out.println(InetAddress.getByName("127.0.0.1"));
        System.out.println(InetAddress.getByName("localhost"));
    }

}
